<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta property="qc:admins" content="65152333317512012166075456000637573070" />
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>首页</title>
	<link rel="stylesheet" type="text/less" href="http://localhost/shop/Template/default/style/main.less" />
	<link rel="stylesheet" href="http://localhost/shop/Template/default/style/bootstrap.min.css" />
	<link rel="stylesheet" href="http://localhost/shop/Template/default/style/font-awesome.min.css">
	<script type="text/javascript" src="http://localhost/shop/Template/default/js/less-1.7.5.min.js"></script>
	<script type="text/javascript" src="http://localhost/shop/Template/default/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="http://localhost/shop/Template/default/js/main.js"></script>	
</head>
<body>
<!-- 头部开始 -->
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!-- 头部开始 -->
<div id="top">
	<div class="nav">
		<div class="left">
			<a href="">小米网</a>
			<span>|</span>
			<a href="">MIUI</a>
			<span>|</span>
			<a href="">米聊</a>
			<span>|</span>
			<a href="">游戏</a>
			<span>|</span>
			<a href="">多看阅读</a>
			<span>|</span>
			<a href="">云服务</a>
			<span>|</span>
			<a href="">小米网移动版</a>
		</div>
		<div class="right">
			<?php if($_SESSION["u_username"]){?>
				<a href="javascript:;">欢迎回来!</a>
				<span></span>
				<a href="<?php echo U('Login/index');?>"><?php echo $_SESSION["u_username"] ?></a>
				<span>|</span>
				<a href="<?php echo U('Menber/index');?>">个人中心</a>
				<span>|</span>
				<a href="<?php echo U('Login/out');?>">退出</a>
			
			<?php  }else{ ?>
				<a href="<?php echo U('Login/qq_login');?>"><img src="http://localhost/shop/Template/default//images/login.png" alt="" /></a>
				<span>|</span>
				<a href="<?php echo U('Login/index');?>">登录</a>
				<span>|</span>
				<a href="<?php echo U('Register/index');?>">注册</a>
			<?php }?>
		</div>
	</div>
	<div class="logo">
		<a href=""><img src="http://localhost/shop/Template/default/images/logo.png" alt="" /></a>
		
		<a class="action" href="">疯狂十一 100万台小米手机免预约购买 </a>
		<form action="" class="search">
			<input type="text" class="search-text" placeholder="搜索你需要的商品" />
			<a href="" class="fa fa-search btn" ></a>
		</form>
		<div class="cart">
			<div class="cart_section">
				<i class="fa fa-shopping-cart"></i>
				<a href="">购物车<?php echo $is_index;?></a>
			</div>
			<div class="cart_list" style="display:none">
				<p>购物车中还没有商品，赶紧选购吧！</p>
				<p>购物车中还没有商品，赶紧选购吧！</p>
				<p>购物车中还没有商品，赶紧选购吧！</p>
				<p>购物车中还没有商品，赶紧选购吧！</p>
				<p>购物车中还没有商品，赶紧选购吧！</p>
			</div>
		</div>
	</div>
	<div class="menu">
		<div class="left <?php if($is_index == 1){?>menu_left1 <?php  }else{ ?>menu_left <?php }?> ">
			<h2>全部商品分类</h2>
			<i class="fa fa-angle-down fa-2x"></i>
			<ul class="list" <?php if($is_index == 1){?> style="display:block" <?php }?>>
				<?php if(is_array($cateData)){?><?php  foreach($cateData as $key=>$v){ ?>
					<?php if($v['pid'] == 0){?>
						<li class="one">
							<div class="box">
								<a class="category" href="<?php echo U('List/index',array('cid'=>$v[cid]));?>"><?php echo $v['cname'];?></a>
								<div class="box_down">
									<?php if(is_array($v['son'])){?><?php  foreach($v['son'] as $key=>$value){ ?>
										<?php if($key<3){?>
											<a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>"><?php echo $value['cname'];?></a>
										<?php }?>
									<?php }}?>
								</div>
								<div class="box_right" style="display:none">
									<ul>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
										<li><a href=""><img src="http://localhost/shop/Template/default/images/min-phone.png" alt="" /><span>小米手机4</span></a></li>
									</ul>
									<div class="other">
										<p>优选配件</p>
										<p><a href="">小米手环 79</a></p>
										<p><a href="">小米活塞耳机 99</a></p>
									</div>
								</div>
							</div>
						</li>
					<?php }?>
				<?php }}?>
			</ul>
		</div>
		<div class="right menu_right">
			<ul>
				<li><a class="category" href="">首页</a></li>
				<li>
					<a class="category" href="javascript:;">小米手机</a>
					<div class="other" style="display:none" >
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone-1.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
					</div>
				</li>
				<li>
					<a class="category" href="">红米</a>
					<div class="other" style="display:none">
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone-1.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
					</div>
				</li>
				<li><a class="category" href="">小米平板</a></li>
				<li><a class="category" href="">小米电视</a></li>
				<li>
					<a class="category" href="">盒子</a>
					<div class="other" style="display:none">
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone-1.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
					</div>
				</li>
				<li>
					<a class="category" href="">路由器</a>
					<div class="other" style="display:none">
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone-1.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
						<a class="other_chri" href="">
							<img src="http://localhost/shop/Template/default/images/mid-phone.png" alt="" />
							<div class="mes">
								<p class="title">小米手机4</p>
								<p class="content">工艺和手感超乎想象</p>
								<p class="price">1999元起</p>	
							</div>
						</a>
					</div>
				</li>
				<li><a class="category" href="">合约机</a></li>
				<li><a class="category" href="">服务</a></li>
				<li><a class="category" href="">社区</a></li>
			</ul>
		</div>
	</div>
</div>
<!-- 头部结束 -->
<!-- 轮展图开始 -->
<div id="banner">
	<div class="right">
		<div class="up">
			<ul class="lunbo">
				<li><a href=""><img src="http://localhost/shop/Template/default/images/baner-1.jpg" alt="" /></a></li>
				<li><a href=""><img src="http://localhost/shop/Template/default/images/baner-2.jpg" alt="" /></a></li>
				<li><a href=""><img src="http://localhost/shop/Template/default/images/baner-3.jpg" alt="" /></a></li>
				<li><a href=""><img src="http://localhost/shop/Template/default/images/baner-4.jpg" alt="" /></a></li>
				<li><a href=""><img src="http://localhost/shop/Template/default/images/baner-5.jpg" alt="" /></a></li>
			</ul>
			<div class="turn_l"></div>
			<div class="turn_r"></div>
		</div>
		<div class="down">
			<ul>
				<li><a href=""><img src="http://localhost/shop/Template/default/images/down-1.jpg" alt="" /></a></li>
				<li><a href=""><img src="http://localhost/shop/Template/default/images/down-2.jpg" alt="" /></a></li>
				<li><a href=""><img src="http://localhost/shop/Template/default/images/down-3.jpg" alt="" /></a></li>
			</ul>
		</div>
	</div>
</div>
<!-- 轮展图结束 -->
<!-- 明星产品开始 -->
<div id="star_good">
	<div class="title">
		<h3>小米明星单品
		<a href="">根据机型选配件</a></h3>
	</div>
	<div class="star_list">
		<ul>
			<li>
				<div class="star_one">
					<span><a href=""><img src="http://localhost/shop/Template/default/images/star_good.jpg" alt="" /></a></span>
					<span><a href="" class="star_title">10400mAh小米移动电源</a></span>
					<span><a href="" class="star_content">全铝合金金属外壳，LG/三星等优质电芯</a></span>
				</div>
			</li>
			<li>
				<div class="star_one">
					<span><a href=""><img src="http://localhost/shop/Template/default/images/star_good.jpg" alt="" /></a></span>
					<span><a href="" class="star_title">10400mAh小米移动电源</a></span>
					<span><a href="" class="star_content">全铝合金金属外壳，LG/三星等优质电芯</a></span>
				</div>
			</li>
			<li>
				<div class="star_one">
					<span><a href=""><img src="http://localhost/shop/Template/default/images/star_good.jpg" alt="" /></a></span>
					<span><a href="" class="star_title">10400mAh小米移动电源</a></span>
					<span><a href="" class="star_content">全铝合金金属外壳，LG/三星等优质电芯</a></span>
				</div>
			</li>
			<li>
				<div class="star_one">
					<span><a href=""><img src="http://localhost/shop/Template/default/images/star_good.jpg" alt="" /></a></span>
					<span><a href="" class="star_title">10400mAh小米移动电源</a></span>
					<span><a href="" class="star_content">全铝合金金属外壳，LG/三星等优质电芯</a></span>
				</div>
			</li>
			<li>
				<div class="star_one">
					<span><a href=""><img src="http://localhost/shop/Template/default/images/star_good.jpg" alt="" /></a></span>
					<span><a href="" class="star_title">小米移动电源</a></span>
					<span><a href="" class="star_content">全铝合金金属外壳，LG/三星等优质电芯</a></span>
				</div>
			</li>
			<li>
				<div class="star_one">
					<span><a href=""><img src="http://localhost/shop/Template/default/images/star_good.jpg" alt="" /></a></span>
					<span><a href="" class="star_title">10400mAh小米移动电源</a></span>
					<span><a href="" class="star_content">全铝合金金属外壳，LG/三星等优质电芯</a></span>
				</div>
			</li>
			<li>
				<div class="star_one">
					<span><a href=""><img src="http://localhost/shop/Template/default/images/star_good.jpg" alt="" /></a></span>
					<span><a href="" class="star_title">10400mAh小米移动电源</a></span>
					<span><a href="" class="star_content">全铝合金金属外壳，LG/三星等优质电芯</a></span>
				</div>
			</li>
			<li>
				<div class="star_one">
					<span><a href=""><img src="http://localhost/shop/Template/default/images/star_good.jpg" alt="" /></a></span>
					<span><a href="" class="star_title">10400mAh小米移动电源</a></span>
					<span><a href="" class="star_content">全铝合金金属外壳，LG/三星等优质电芯</a></span>
				</div>
			</li>
		</ul>
	</div>
</div>
<!-- 明星产品结束 -->
<!-- 新品上架开始 -->
<div id="news">
	<div class="title">
		<h3>新品上架</h3>
	</div>
	<div class="news_list">
		<div class="news_left">
			<ul>
				<li>
					<div class="news_one">
						<span><a href="" class="news_title">小米3色彩主题保护壳</a></span>
						<span class="news_price">39元</span>
						<span><a href=""><img src="http://localhost/shop/Template/default/images/news.png" alt="" /></a></span>
					</div>
				</li>
				<li>
					<div class="news_one">
						<span><a href="" class="news_title">小米3色彩主题保护壳</a></span>
						<span class="news_price">39元</span>
						<span><a href=""><img src="http://localhost/shop/Template/default/images/news.png" alt="" /></a></span>
					</div>
				</li>
				<li>
					<div class="news_one">
						<span><a href="" class="news_title">小米3色彩主题保护壳</a></span>
						<span class="news_price">39元</span>
						<span><a href=""><img src="http://localhost/shop/Template/default/images/news.png" alt="" /></a></span>
					</div>
				</li>
				<li>
					<div class="news_one">
						<span><a href="" class="news_title">小米3色彩主题保护壳</a></span>
						<span class="news_price">39元</span>
						<span><a href=""><img src="http://localhost/shop/Template/default/images/news.png" alt="" /></a></span>
					</div>
				</li>
				<li>
					<div class="news_one">
						<span><a href="" class="news_title">小米3色彩主题保护壳</a></span>
						<span class="news_price">39元</span>
						<span><a href=""><img src="http://localhost/shop/Template/default/images/news.png" alt="" /></a></span>
					</div>
				</li>
				<li>
					<div class="news_one">
						<span><a href="" class="news_title">小米3色彩主题保护壳</a></span>
						<span class="news_price">39元</span>
						<span><a href=""><img src="http://localhost/shop/Template/default/images/news.png" alt="" /></a></span>
					</div>
				</li>
				<li>
					<div class="news_one">
						<span><a href="" class="news_title">小米3色彩主题保护壳</a></span>
						<span class="news_price">39元</span>
						<span><a href=""><img src="http://localhost/shop/Template/default/images/news.png" alt="" /></a></span>
					</div>
				</li>
				<li>
					<div class="news_one">
						<span><a href="" class="news_title">小米3色彩主题保护壳</a></span>
						<span class="news_price">39元</span>
						<span><a href=""><img src="http://localhost/shop/Template/default/images/news.png" alt="" /></a></span>
					</div>
				</li>
				<li>
					<div class="news_one">
						<span><a href="" class="news_title">小米3色彩主题保护壳</a></span>
						<span class="news_price">39元</span>
						<span><a href=""><img src="http://localhost/shop/Template/default/images/news.png" alt="" /></a></span>
					</div>
				</li>
			</ul>
		</div>
		<div class="news_right">
			<span>特价商品</span>
			<ul>
				<li>
					<div class="price_left">
						<h3>配件优惠套装</h3>
						<p class="price">89元</p>
						<p>还有更多特价产品</p>
					</div>
					<div class="price_right">
						<a href=""><img src="http://localhost/shop/Template/default/images/price-goods.jpg" alt="" /></a>
					</div>
				</li>
				<li>
					<div class="price_left">
						<h3>配件优惠套装</h3>
						<p class="price">89元</p>
						<p>还有更多特价产品</p>
					</div>
					<div class="price_right">
						<a href=""><img src="http://localhost/shop/Template/default/images/price-goods.jpg" alt="" /></a>
					</div>
				</li>
				<li>
					<div class="price_left">
						<h3>配件优惠套装</h3>
						<p class="price">89元</p>
						<p>还有更多特价产品</p>
					</div>
					<div class="price_right">
						<a href=""><img src="http://localhost/shop/Template/default/images/price-goods.jpg" alt="" /></a>
					</div>
				</li>
				<li>
					<div class="price_left">
						<h3>配件优惠套装</h3>
						<p class="price">89元</p>
						<p>还有更多特价产品</p>
					</div>
					<div class="price_right">
						<a href=""><img src="http://localhost/shop/Template/default/images/price-goods.jpg" alt="" /></a>
					</div>
				</li>
				<li>
					<div class="price_left">
						<h3>配件优惠套装</h3>
						<p class="price">89元</p>
						<p>还有更多特价产品</p>
					</div>
					<div class="price_right">
						<a href=""><img src="http://localhost/shop/Template/default/images/price-goods.jpg" alt="" /></a>
					</div>
				</li>
				<li>
					<div class="price_left">
						<h3>配件优惠套装</h3>
						<p class="price">89元</p>
						<p>还有更多特价产品</p>
					</div>
					<div class="price_right">
						<a href=""><img src="http://localhost/shop/Template/default/images/price-goods.jpg" alt="" /></a>
					</div>
				</li>
			</ul>
		</div>
	</div>	
</div>
<!-- 新品上架结束 -->
<!-- 热评产品开始 -->
<div id="hot">
	<div class="title">
		<h3>新品上架</h3>
	</div>
	<div class="hot_goods">
		<ul>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot.jpg" alt="" /></a></span>
				</div>
			</li>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot.jpg" alt="" /></a></span>
				</div>
			</li>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot.jpg" alt="" /></a></span>
				</div>
			</li>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot.jpg" alt="" /></a></span>
				</div>
			</li>
		</ul>
	</div>
</div>
<!-- 热评产品结束 -->
<!-- 热评产品开始 -->
<div id="hot">
	<div class="title">
		<h3>特价产品</h3>
	</div>
	<div class="hot_goods">
		<ul>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot_1.jpg" alt="" /></a></span>
				</div>
			</li>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot_1.jpg" alt="" /></a></span>
				</div>
			</li>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot_1.jpg" alt="" /></a></span>
				</div>
			</li>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot_1.jpg" alt="" /></a></span>
				</div>
			</li>
		</ul>
	</div>
</div>
<!-- 热评产品结束 -->
<!-- 热评产品开始 -->
<div id="hot">
	<div class="title">
		<h3>MIUI 主题</h3>
	</div>
	<div class="hot_goods">
		<ul>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot_3.jpg" alt="" /></a></span>
				</div>
			</li>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot_3.jpg" alt="" /></a></span>
				</div>
			</li>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot_3.jpg" alt="" /></a></span>
				</div>
			</li>
			<li>
				<div class="hot_one">
					<span><a href="" class="hot_title">小米3色彩主题保护壳</a></span>
					<span class="hot_price">39元</span>
					<span><a href=""><img src="http://localhost/shop/Template/default/images/hot_3.jpg" alt="" /></a></span>
				</div>
			</li>
		</ul>
	</div>
</div>
<!-- 热评产品结束 -->
<!-- // 服务样式开始 -->
<div id="footer">
	<ul class="serve">
		<li>
			<a href="">
				<i class="fa fa-wrench fa-2x"></i>
				<span>1小时快修服务</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-history fa-2x"></i>
				<span>7天无理由退货</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-refresh fa-2x"></i>
				<span>15天免费换货</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-gift fa-2x"></i>
				<span>满150元包邮</span>
			</a>
		</li>
		<li>
			<a href="">
				<i class="fa fa-phone-square fa-2x"></i>
				<span>460余家售后网点</span>
			</a>
		</li>
	</ul>
	<div class="other">
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<dl>
			<dt>帮助中心</dt>
			<dd><a href="">购物指南</a></dd>
			<dd><a href="">支付方式</a></dd>
			<dd><a href="">配送方式</a></dd>
		</dl>
		<div class="phone">
			<p class="phones">400-100-5678</p>
			<p class="time">国庆假期 9:00 - 18:00 </p>
			<p class="data">（10月1日 - 7日）</p>
			<a class="hours">24不时在线客服</a>
		</div>
	</div>
	<p class="copyright">©mi.com 京ICP证110507号 京ICP备10046444号 京公网安备1101080212535号 京网文[2014]0059-0009号</p>
</div>
<!-- // 服务样式结束 -->
</body>
</html>